package com.pb.infra.auth.mapper.custom;

import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
 * 系统密码策略标识
 *
 * @Author:liudebao
 * @Date: 2020/12/25
 */
@Mapper
@Repository
public interface MetaPriviPasswdPolicyCustomMapper {

    /**
     *查看密码策略
     * @param map
     * @return
     */
    List<Map<String , Object>> selectData(Map<String,Object> map);

    /**
     *查看密码规则
     * @return
     */
    List<Map<String , Object>> selectRule();

    /**
     *查看法人密码策略
     * @param map
     * @return
     */
    List<Map<String , Object>> selectCorpPolicyData(Map<String,Object> map);

    /**
     *查看所有密码策略
     * @return
     */
    List<Map<String , Object>> selAllPassPolicy();

    /**
     *修改用户密码策略
     * @param map
     */
    void updateUserPolicy(Map<String,Object> map);

    /**
     * 根据策略标识查用户
     * @param appId
     * @return
     */
    List<Map<String , Object>> selUserPolicy(String appId);

}
